package ooday05;
import ooday02.Student;
import ooday05.Aoo;
public class Coo { //演示同包的
    void show(){
        Aoo o = new Aoo();
        o.a = 1;
        //o.b = 2; //编译错误
        //o.c = 3; //编译错误
        //o.d = 4; //编译错误
    }
}

class Doo extends Aoo{ //跨包继承----演示protected
    void show(){
        a = 1;
        b = 2;
        c = 3; //本类、同包类
       // d = 4; //private的编译错误
    }
}

class Doo1 extends Student {

    public Doo1(String name, int age, String address) {
        super(name, age, address);

    }

}


















